package designmode.singleton;

/**
 * 单例模式设计模版 : 静态内部类 式
 * 
 * @author Beanstao@gmail.com
 * @date 2013-10-14上午10:32:54
 * @version 1.0
 */
public class OnlyOneObject$StaticInsideClass
{
	public static OnlyOneObject$StaticInsideClass ME()
	{
		return Single.Instance;
	}

	static class Single
	{
		static Object lock = new Object();
		static
		{
			synchronized (lock)
			{
				Instance = new OnlyOneObject$StaticInsideClass();
			}
		}
		static OnlyOneObject$StaticInsideClass Instance;
	}

	protected OnlyOneObject$StaticInsideClass()
	{
	}
}
